#pragma  once

#ifndef PROPERTYCONST
#define PROPERTYCONST

#include "Structs.h"

#define PropertyNum		10
#define	UP				"up"
#define	DOWN			"down"
#define	LEFT			"left"
#define RIGHT			"right"
#define BUTTONA			"button A"
#define BUTTONB			"button B"
#define BUTTONC			"button C"
#define BUTTOND			"button D"
#define BUTTONE			"button E"
#define BUTTONF			"button F"
CString PropertyItem[PropertyNum]={CString(UP),CString(DOWN),CString(LEFT),CString(RIGHT),CString(BUTTONA),CString(BUTTONB),CString(BUTTONC),CString(BUTTOND),CString(BUTTONE),CString(BUTTONF)};
TCHAR ButtonSign[5][12]={
	{' ','E','1','2','3','4','5','6','7','8','9','0'},
	{'B','\'','q','w','e','r','t','y','u','i','o','p'},
	{'C','/','a','s','d','f','g','h','j','k','l',';'},
	{'S','T','z','x','c','v','b','n','m',',','.'},
	{'R','A','-','=','[',']','\\','`'}};
CString PropertyStr[5][12]={
	{TEXT("Space"),TEXT("Enter"),TEXT("1"),TEXT("2"),TEXT("3"),TEXT("4"),TEXT("5"),TEXT("6"),TEXT("7"),TEXT("8"),TEXT("9"),TEXT("0")},
	{TEXT("BackSpace"),TEXT("\'"),TEXT("q"),TEXT("w"),TEXT("e"),TEXT("r"),TEXT("t"),TEXT("y"),TEXT("u"),TEXT("i"),TEXT("o"),TEXT("p")},
	{TEXT("CapsLk"),TEXT("/"),TEXT("a"),TEXT("s"),TEXT("d"),TEXT("f"),TEXT("g"),TEXT("h"),TEXT("j"),TEXT("k"),TEXT("l"),TEXT(";")},
	{TEXT("Shift"),TEXT("Tab"),TEXT("z"),TEXT("x"),TEXT("c"),TEXT("v"),TEXT("b"),TEXT("n"),TEXT("m"),TEXT(","),TEXT(".")},
	{TEXT("Ctrl"),TEXT("Alt"),TEXT("-"),TEXT("="),TEXT("["),TEXT("]"),TEXT("\\"),TEXT("`")}
};
int KeyCode[5][12]={
	{VK_SPACE,VK_RETURN,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39},
	{VK_BACK,VK_OEM_5,0x51,0x57,0x45,0x52,0x54,0x59,0x55,0x49,0x4f,0x50},
	{VK_CAPITAL,VK_OEM_2,0x41,0x53,0x44,0x46,0x47,0x48,0x4a,0x4b,0x4c,VK_OEM_1},
	{VK_SHIFT,VK_TAB,0x5a,0x58,0x43,0x56,0x42,0x4e,0x4d,VK_OEM_COMMA,VK_OEM_PERIOD},
	{VK_CONTROL,VK_MENU,VK_OEM_MINUS,VK_OEM_PLUS,VK_OEM_4,VK_OEM_6,VK_OEM_5,VK_OEM_3}
};
int defaultMap[PropertyNum][2]={
	{1,3},{2,3},{2,2},{2,4},{2,8},{2,9},{2,10},{3,8},{3,9},{3,10}
};
int KeyMap[PropertyNum][2];
KEYPOS KeyProperty[PropertyNum];
KEYPOS TmpKeyProperty[PropertyNum];
#endif